package com.wsfk.ssm.service;

import java.io.File;
import java.util.List;

import com.wsfk.ssm.entity.HandBook;
import com.wsfk.ssm.entity.Picture;
import com.wsfk.ssm.entity.User;
import com.wsfk.ssm.entity.Zip;
import com.wsfk.ssm.tools.Pagination;

public interface PictureSvc {
	
	public int addPicture(List<Picture> pictures);//向数据库中添加多个数据
		
	public int updateByStatus(String id , String status);
	
	public int addZip(Zip zip);
	
	public List<Picture> queryAllPicByBook(String handBookId);
	
	public Pagination queryPagePicByBook(String handBookId,Pagination page);
	
	//public void updatePic(File upload, String uploadFileName, String picFileDir );
	
	public int queryPagePicCountByBookId(String handBookId);
	
	public int savePicture(Picture picture);
	
	//public Picture saveOnePicFile(File upload , int count, HandBook handBook,String userName);
	
	public HandBook queryBookById(String id);
	
	public User queryUserById(String id);
	
	
	public boolean savePicFile(User user,HandBook book, List<File> uploadPic,List<String> place);
	
	public boolean updatePic(User user, HandBook book, String picId, File upload);
	
	public boolean updateIcon(User user, HandBook book, String picId, File upload);

}
